package com.yk.airline.service.origindata.impl;

import com.yk.airline.dao.origindata.api.IOriginDataDao;
import com.yk.airline.model.OriginDataModel;
import com.yk.airline.service.common.impl.CommonServiceImpl;
import com.yk.airline.service.origindata.api.IOriginDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Project Name:airlinecrawler
 * File Name:OriginDataServiceImpl
 * Package Name:com.yk.airline.service.origindata.impl
 * Date:2018/1/31 17:49
 * Author:dengtianjia
 * Description:
 * Copyright (c) 2018, 重庆云凯科技有限公司 All Rights Reserved.
 */
@Service("originDataService")
public class OriginDataServiceImpl extends CommonServiceImpl<OriginDataModel> implements IOriginDataService {

    @Resource(name = "originDataDao")
    private IOriginDataDao originDataDao;

    @Override
    public List<OriginDataModel> findAll() {
        return this.originDataDao.findAll();
    }

    @Override
    public int findTotalCount() {
        return this.originDataDao.findTotalCount();
    }
}
